package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ImageLibraryMapper;
import com.ruoyi.system.domain.ImageLibrary;
import com.ruoyi.system.service.IImageLibraryService;

/**
 * ImageLibraryService业务层处理
 * 
 * @author xugaokui
 * @date 2025-03-17
 */
@Service
public class ImageLibraryServiceImpl implements IImageLibraryService 
{
    @Autowired
    private ImageLibraryMapper imageLibraryMapper;

    /**
     * 查询ImageLibrary
     * 
     * @param id ImageLibrary主键
     * @return ImageLibrary
     */
    @Override
    public ImageLibrary selectImageLibraryById(Long id)
    {
        return imageLibraryMapper.selectImageLibraryById(id);
    }

    /**
     * 查询ImageLibrary列表
     * 
     * @param imageLibrary ImageLibrary
     * @return ImageLibrary
     */
    @Override
    public List<ImageLibrary> selectImageLibraryList(ImageLibrary imageLibrary)
    {
        return imageLibraryMapper.selectImageLibraryList(imageLibrary);
    }

    /**
     * 新增ImageLibrary
     * 
     * @param imageLibrary ImageLibrary
     * @return 结果
     */
    @Override
    public int insertImageLibrary(ImageLibrary imageLibrary)
    {
        return imageLibraryMapper.insertImageLibrary(imageLibrary);
    }

    /**
     * 修改ImageLibrary
     * 
     * @param imageLibrary ImageLibrary
     * @return 结果
     */
    @Override
    public int updateImageLibrary(ImageLibrary imageLibrary)
    {
        return imageLibraryMapper.updateImageLibrary(imageLibrary);
    }

    /**
     * 批量删除ImageLibrary
     * 
     * @param ids 需要删除的ImageLibrary主键
     * @return 结果
     */
    @Override
    public int deleteImageLibraryByIds(Long[] ids)
    {
        return imageLibraryMapper.deleteImageLibraryByIds(ids);
    }

    /**
     * 删除ImageLibrary信息
     * 
     * @param id ImageLibrary主键
     * @return 结果
     */
    @Override
    public int deleteImageLibraryById(Long id)
    {
        return imageLibraryMapper.deleteImageLibraryById(id);
    }
}
